<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .leo span span {
            color: green;
        }

        .leo span {
            color: orangered;
        }

        .blue > div > div {
            width: 200px;
            height: 200px;
            background: yellow;
        }
    </style>
</head>
<body>

<div class="leo">
    <span>span1</span>
    <span>span2
        <span>span4
            <span>span5</span>
        </span>
    </span>
</div>
<span>span3</span>
<div class="blue">
    <div>
        <div></div>
    </div>
    <div></div>
</div>
</body>
</html>